<%@page contentType="text/html;charset=UTF-8"%>
<% request.setCharacterEncoding("UTF-8"); %>
<HTML>
<HEAD>
<TITLE>Result</TITLE>
</HEAD>
<BODY>
<H1>Result</H1>

<jsp:useBean id="sampleMorseFormatterProxyid" scope="session" class="com.morse.MorseFormatterProxy" />
<%
if (request.getParameter("endpoint") != null && request.getParameter("endpoint").length() > 0)
sampleMorseFormatterProxyid.setEndpoint(request.getParameter("endpoint"));
%>

<%
String method = request.getParameter("method");
int methodID = 0;
if (method == null) methodID = -1;

if(methodID != -1) methodID = Integer.parseInt(method);
boolean gotMethod = false;

try {
switch (methodID){ 
case 2:
        gotMethod = true;
        String text_0id=  request.getParameter("text5");
            java.lang.String text_0idTemp = null;
        if(!text_0id.equals("")){
         text_0idTemp  = text_0id;
        }
        String seperator_1id=  request.getParameter("seperator7");
            java.lang.String seperator_1idTemp = null;
        if(!seperator_1id.equals("")){
         seperator_1idTemp  = seperator_1id;
        }
        java.lang.String decode2mtemp = sampleMorseFormatterProxyid.decode(text_0idTemp,seperator_1idTemp);
if(decode2mtemp == null){
%>
<%=decode2mtemp %>
<%
}else{
        String tempResultreturnp3 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(decode2mtemp));
        %>
        <%= tempResultreturnp3 %>
        <%
}
break;
case 9:
        gotMethod = true;
        String text_2id=  request.getParameter("text12");
            java.lang.String text_2idTemp = null;
        if(!text_2id.equals("")){
         text_2idTemp  = text_2id;
        }
        String seperator_3id=  request.getParameter("seperator14");
            java.lang.String seperator_3idTemp = null;
        if(!seperator_3id.equals("")){
         seperator_3idTemp  = seperator_3id;
        }
        java.lang.String encode9mtemp = sampleMorseFormatterProxyid.encode(text_2idTemp,seperator_3idTemp);
if(encode9mtemp == null){
%>
<%=encode9mtemp %>
<%
}else{
        String tempResultreturnp10 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(encode9mtemp));
        %>
        <%= tempResultreturnp10 %>
        <%
}
break;
}
} catch (Exception e) { 
%>
Exception: <%= org.eclipse.jst.ws.util.JspUtils.markup(e.toString()) %>
Message: <%= org.eclipse.jst.ws.util.JspUtils.markup(e.getMessage()) %>
<%
return;
}
if(!gotMethod){
%>
result: N/A
<%
}
%>
</BODY>
</HTML>